<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>{$web_site.title}</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="{$web_site.description}">
	<meta name="author" content="{$web_site.author}">
	<link rel="shortcut icon" href="{$web_site.shortcut}" />	

    <link rel="stylesheet" href="{$Think.ADMIN_PUBLIC}css/styles.min.css?=113">
    <style>
    	body {
 		 overflow: hidden;
		}
    	canvas {
			  position: absolute;
			  top: 0;
			  left: 0;
			  background-color: black;
		}
    </style>
</head>
<body class="focusedform">
<div class="verticalcenter">
	<div class="panel panel-primary">
		<div class="panel-body">
			<h3 class="text-center" style="margin-bottom: 25px;">系统配置</h3>
				<form action="#" class="form-horizontal" style="margin-bottom: 0px !important;" id="validate-form">
						<div class="form-group">
							<div class="col-sm-12">
								<label for="password" class="control-label col-sm-3" style="text-align: left;">店铺编号:</label>
								<div class="col-sm-9">
									<input type="input" required="required"  data-minlength="1" class="form-control" name="shop_id" id="shop_id" placeholder="店铺编号">
								</div>								
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12">
								<label for="password" class="control-label col-sm-3" style="text-align: left;">店铺名称:</label>
								<div class="col-sm-9">
									<input type="input" required="required"  data-minlength="1" class="form-control" name="shop_name" id="shop_name" placeholder="店铺名称">
								</div>								
							</div>
						</div>
                   		 
						<div class="form-group">
							<div class="col-sm-12">
								<label for="password" class="control-label col-sm-3" style="text-align: left;">sql路径:</label>
								<div class="col-sm-9">
									<input type="input" required="required"  data-minlength="1" class="form-control" value="C:\wamp\www\anke\data\sqlbackup" name="sql_dir" id="sql_dir" placeholder="sql备份文件路径">
								</div>								
							</div>
						</div>
						<div class="panel-footer">
							<div class="pull-right">
								<input type="reset" class="btn btn-default" />
								<button id="config-sure"  class="btn btn-primary"><i class="fa fa-arrow-circle-right"></i><span class="bold">&nbsp;&nbsp;确定</span></button>
							</div>
					</div>
					</form>
		</div>
	</div>
 </div>
</body>
<script type='text/javascript' src='{$Think.ADMIN_PUBLIC}js/jquery-1.10.2.min.js'></script> 
<script type='text/javascript' src='{$Think.ADMIN_PUBLIC}plugins/form-parsley/parsley.min.js'></script>

<script>		
	$("#config-sure").click(function(){		
   		var flag=$('#validate-form').parsley('validate' );
   		if(flag){
   			$.post(
   				'/admin/main/lock_varify',
   				$("#validate-form").serialize(),
   				function(data){
	   				if(data.flag){
			      		location.href="/admin/main/login/type/auto/s_s/"+new Date().getMilliseconds();
		      		}else{
		      		 	alert(data.msg);
		      		}
   				},
   				"json"
   			);
   			return false;
   		}
	});
</script>
</html>